import yaml
import os


common_path = os.path.dirname(os.path.abspath(__file__))
project_path = os.path.dirname(common_path)
config_path = os.path.join(project_path, 'conf')
url_pre_path = os.path.join(config_path, 'pre.yaml')
test_data_path = os.path.join(project_path,'class_test_data.xlsx')
log_path = os.path.join(project_path,'log')

def get_yaml():
    try:
        with open(url_pre_path, 'r', encoding='utf-8') as f:
            data = yaml.load(f, Loader=yaml.FullLoader)
            return data
    except FileNotFoundError as e:
        raise e

if __name__ == '__main__':
    res = get_yaml()
    print(res)